//
//  TableViewCell.swift
//  ios_mj_refresh
//
//  Created by GAOMO on 2019/11/14.
//  Copyright © 2019 GAOMO. All rights reserved.
//

import UIKit
import SnapKit
class TableViewCell: UITableViewCell {
    var labe = UILabel()
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        labe.textColor = UIColor.red
        var label = UILabel()
        let screenw = UIScreen.main.applicationFrame.size.width;
        label.text="1"
        label.frame = CGRect(x:0, y:0, width:screenw,height:60)
        addSubview(label)
        addSubview(labe)
        var label1 = UILabel()
        label1.text = "2"
        addSubview(label1)
        label1.snp.makeConstraints{
            (make) in
            make.top.equalTo(label.snp.bottom)
        }
        labe.snp.makeConstraints{
                   (make) in
                   make.top.equalTo(label1.snp.bottom)
               }
    }

    required init?(coder: NSCoder) {
        super.init(coder: coder)
        
    }
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
